<template>

    <m-table name="admin-goodstype" :action="action" :search="search" :params="params" ref="table">

        <el-table-column label="分类名称" prop="name" />

        <el-table-column label="排序" prop="index" />

        <el-table-column label="添加时间" prop="created"  />
    </m-table>

</template>

<script>
import request from '@/utils/request'
import { accountState } from '@/config/account'
export default {
    data() {
        return {
            states:accountState,
            search: [
                { icon: 'el-icon-mobile', type: 'like', name: 'name', label: '分类名称', span: 4, value: '' }
            ],
            action: { remove: true, edit: true, add: true, export: false },
            params:[
                { name: 'id', value: '', hide: true },
                { name: 'name', value: '', label: '分类名称' , type:'string'},
                { name: 'index', value: '', label: '排序' , type:'string'}
            ]
        }
    },
    methods:{
       
    }
}
</script>